package builder;

public class HouseDirector {

    public AbstractBuilder abstractBuilder;

    public HouseDirector(AbstractBuilder abstractBuilder) {
        this.abstractBuilder = abstractBuilder;
    }

    public void setAbstractBuilder(AbstractBuilder abstractBuilder) {
        this.abstractBuilder = abstractBuilder;
    }

    public House buildHouse(){
        abstractBuilder.buildBase();
        abstractBuilder.buildWalls();
        abstractBuilder.buildRoof();
        return abstractBuilder.buildHouse();
    }

}
